package render
{
	public class Triple
	{
		public static const REL:int = 0;
		public static const ATTR:int = 1;
		
		private var _subject:String;
		private var _predicate:String;
		private var _object:String;
		private var _mustShow:Boolean = false;
		
		public function Triple(sub:String,pre:String,obj:String)
		{
			_subject = sub;
			_predicate = pre;
			_object = obj;
		}
		
		public function get subject():String
		{
			return _subject;
		}
		public function predicateType():int
		{
			if(_object.charAt(0) == "\"")
				return ATTR;
			return REL;
		}
		public function get predicate():String
		{
			return _predicate;
		}
		public function get object():String
		{
			return _object;
		}
		public function get mustShow():Boolean
		{
			return _mustShow;
		}
		public function set mustShow(bool:Boolean):void
		{
			_mustShow = bool;
		}
		
		public function toString():String{
			return " Subject: " + subject + "\n" +
				   " Predicate: " + predicate + "\n" +
				   " Object: " + object + "\n";
		}
	}
}